﻿<!DOCTYPE>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <meta http-equiv="content-type" content="txt/html charset=utf-8" />
    <title>电子签名</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
   
</head>
<body>
    <div class="panelSection">    
        <div class="easyui-panel " title="按钮区域" style="padding:3px;width:100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
                <button  id="btnTest" class="easyui-linkbutton" data-options="width:100,iconCls:'icon-search'" title="到指定路径下" style="margin-top:17px">
                        测试</button>

        </div> 

    </div> 
    <div class="panelSection">    
        <div class="easyui-panel " title="显示区域" style="padding:3px;width:100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
             <div style="float: left; margin-left: 0px">
                <div class="divLabel" style="margin-bottom: 5px">
                    消息：</div>
                <input id="txtMsg" class="easyui-textbox" name="ProductNo" type="text" data-options="multiline:true"
                    style="width: 600px; height: 200px" />
            </div>

        </div> 

    </div> 
</body>
</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
    /*
    创建人：Wangjh
    日期：2022-04-28
    描述：有限排产js
    */
    var page = {
        pagetotal: 0,
        pageSize: 5,
        pageNumber: 1,
        rootPath: getRootPath(), //网站根路径
        ajaxUrl: getRootPath() + "/Ashx/ContainerStepDispatchHandler.ashx",
        //初始化页面
        init: function () {
            page.bind();
        },
        //页面事件绑定
        bind: function () {
            //查询按钮
            $('#btnTest').on("click", function () {
                $.ajax({
                    type: "Post",
                    url: "http://localhost/LYMesApi/api/default/AcceptDCMessage",
                    data: { fromappid: "rbmes", toappid: "nwmes", dtype: 20, businessid: "123456" },
                    cashe: false,
                    async: true,
                    beforeSend: function () {
                    },
                    success: function (data) {
                        console.log(data);
                        $("#txtMsg").textbox('setValue', data);
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        console.log(errorThrown);
                    }
                });
            });

        },
        //清除方法，重要！！！
        reset: function (iscondition, isresult) {
            clearMessage();

        }
    }
    $(function () {
        page.init();
    });
</script>